package com.lenin.omena.shared;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.lenin.omena.shared.domain.Produce;
import com.lenin.omena.shared.domain.User;
import com.lenin.omena.shared.domain.UserInfo;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("appleMarketService")
public interface AppleMarketService extends RemoteService {
	
	SaveUserResult saveUser(User user);
	
	DeleteUserResult deleteUser(String userKey);
	
	SaveUserInfoResult saveUserInfo(String userKey, UserInfo userInfo);
	
	ActivateResult activateUser(String userKey);
	
	LoginResult logIn(String userName, String password);
	
	LoginResult logOut();
	
	List<User> getAllUsers();
	
	DeleteProduceResult deleteProduce(String userKey, String produceKey);
	
	AddProduceResult addProduce(String userKey, Produce produce);
	
	SaveProduceResult saveProduce(Produce produce);
	
	Integer test(User user, Produce produce);
	
}
